export typeGroups = (list) => {
  const groups = {}
  list.forEach(item => {
    const info = {}
    if (!groups[item.type]) {
      groups[item.type] = []
    }
    groups[item.type].push(item)
  })
  return groups
}